MySQL Query : SELECT COUNT(*) AS num FROM `zoy_trade`.`trade_picture` WHERE typeid={$tid} and status=99 AND catid='8' LIMIT 1 MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '} and status=99 AND catid='8' LIMIT 1' at line 1 MySQL Errno : 1064 Message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '} and status=99 AND catid='8' LIMIT 1' at line 1 Need Help?